﻿<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" default-access="property" default-lazy="true" namespace="Cms.Domain" assembly="Cms.Domain">
  <class name="Locale" table="cmsLocale">
    <cache usage="read-write" />
    <id name="ID" type="System.Int32" unsaved-value="0">
      <column name="ID" />
      <generator class="identity" />
    </id>
    <property name="AliasDomain" type="System.String">
      <column name="AliasDomain" not-null="false" />
    </property>
    <property name="UrlCode" type="System.String">
      <column name="UrlCode" not-null="true" />
    </property>
    <property name="ContentLatestUpdated" type="System.Nullable`1[[System.DateTime, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
      <column name="ContentLatestUpdated" not-null="false" />
    </property>
    <property name="CultureCode" type="System.String">
      <column name="CultureCode" not-null="false" />
    </property>
    <map name="Translations" table="cmsLocaleTranslation" mutable="true">
      <cache usage="read-write" />
      <key>
        <column name="LocaleID" />
      </key>
      <index type="System.Int32">
        <column name="TranslationLocaleID" />
      </index>
      <composite-element class="LocaleTranslation">
        <property name="Name" type="System.String">
          <column name="LocaleName" not-null="true" />
        </property>
        <property name="Region" type="System.String">
          <column name="LocaleRegion" not-null="true" />
        </property>
        <property name="Language" type="System.String">
          <column name="LocaleLanguage" not-null="true" />
        </property>
      </composite-element>
    </map>
    <many-to-one class="Site" name="Site">
      <column name="SiteID" not-null="true" />
    </many-to-one>
  </class>
</hibernate-mapping>